package Test2;

import java.util.Scanner;

public class UserViewImp implements UserView{
    UserBizImp ubi = new UserBizImp();
    Scanner in = new Scanner(System.in);

    @Override
    public void login() {
        System.out.println("请输入用户名：");
        String username = in.next();
        System.out.println("请输入密码");
        String password = in.next();
        ubi.login(username,password);
    }

    @Override
    public void register() {
        System.out.println("请输入用户名：");
        String username = in.next();
        System.out.println("请输入密码");
        String password = in.next();
        System.out.println("请再次输入密码");
        String repassword = in.next();
        System.out.println("请输入真实姓名");
        String name = in.next();
        System.out.println("请输入邮箱");
        String email = in.next();
        ubi.register(username,password,repassword,name,email);
    }
}
